<template>
  <div class="chat-container">
    <div class="activatePop" v-if="activatePopShow" @click="close">
      <div class="activateBox">
        <div class="membership">
          <div class="img"></div>
        </div>
        <div class="activateNow">
          <div class="img" @click="gotoPay"></div>
          <div class="closePay" @click="close">关闭</div>
        </div>
      </div>
    </div>
  </div>
</template>
  
<script>
export default {
  name: 'TopNav',
  mixins: [],
  components: {},
  data() {
    return {
      activatePopShow:true,
    }
  },

  watch: {},

  mounted() {},
  beforeDestroy() {
    //清除定时器
    clearInterval(this.timer)
    this.timer = null
  },
  methods: {
    close(){
      console.log('1111111111111')
      this.activatePopShow = false
    },
    //选项卡下标
    gotoPay(data) {
      console.log('22222222222222')
      this.$router.push({ path: '/chatgpt/MemberPage' })
    },
  },
}
</script>
  
  <style lang="less" scoped >
.activatePop {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9;
  overflow: auto;
  .activateBox {
    width: 340px;
    height: 362px;
    position: relative;
    top: 20%;
    left: 50%;
    margin-left: -161px;
    .membership {
      .img {
        background-image: url(../../../assets/member-tk.png);
        background-position: 0% 0%;
        background-size: 100% 100%;
        width: 340px;
        height: 362px;
        background-repeat: no-repeat;
      }
    }
    .activateNow {
      position: absolute;
      bottom: 14px;
      left: 45px;
      .img {
        background-image: url('../../../assets/member-btn.png');
        background-position: 0% 0%;
        background-size: 100% 100%;
        background-repeat: no-repeat;
        width: 230px;
        height: 49px;
        cursor: pointer;
      }
      .closePay{
        margin-top: 10px;
        text-align: center;
    font-weight: bold;
    cursor: pointer;
      }
    }
  }
}
</style>
  